/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "stdafx.h"
#include "ui全屏画布.h"



static void f_节点面板布局(C_Widget* self, C_Widget** w, uint32 num) {
	//C_节点面板* 节点面板 = dynamic_cast<C_节点面板*>(self);


}

C_全屏画布::C_全屏画布(S_UI创建环境* ctx, C_Widget管理* gm) : C_Widget(ctx) {
	f_绑定窗口管理(gm);
}

C_全屏画布::~C_全屏画布() {

}

static void f_节点全屏链接线布局(C_Widget* self, C_Widget** w, uint32 num) {
	auto* gm = self->f_get窗口管理();
	self->f_setSize({ gm->窗口大小.z, gm->窗口大小.w });
}


C_Widget* f_ui_创建全屏画布(S_UI创建环境& ctx, C_Widget管理* gm) {
	C_Widget* box = new C_Widget(&ctx);
	box->f_绑定窗口管理(gm);
	box->mf_布局Fun = f_节点全屏链接线布局;
	return box;
}

void f_ui_销毁全屏画布(C_Widget* self) {
	f_widget_顶层窗口_pop(0);
	delete self;
}


